<%--
 *  File:    SystemEdit.jsp
 *  @Author: Michael Zhao 
 *  Date:    2002/11/20
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>


<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>


<%
  
  String strModuleName = "IMG";    
  String privilegeCode = "Z0812";
%>


<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>

<html>
<head>
<title></title>
<PageFlow:CheckPageFlow pageName="systemedit"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../css/<%= strLanguageCode %>/main.css" type="text/css">
<SCRIPT language=JavaScript1.2 src="../css/menu.js"></SCRIPT>
<script language="JavaScript" src="../css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="../js/FuncLib.js"></script>
<%
    HashMap appinfo = (HashMap)pageContext.getAttribute("appinfo");
	 Integer app = (Integer)pageContext.getAttribute("app");
	if(appinfo == null)
	{
		appinfo = new HashMap();
	}

%>


<script language="JavaScript">

 function page_save()
 {
	if(document.cform.applicationname.value == -1||document.cform.applicationname.value == "")
	{
       alert("<%= message.getMessageDesc("VALUE_NOT_NULL",label.getLabelName("L_AppName",false)) %>");
       return;
	}
    if(document.cform.firstcharactors.value == -1||document.cform.firstcharactors.value == "")
	{
       alert("<%= message.getMessageDesc("VALUE_NOT_NULL",label.getLabelName("L_FirstCharactors",false)) %>");
       return;
	}
	cform.actionname.value = "save";
  	cform.target = "_self";
  	isRunning = true;
  	cform.submit();

 }

</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
  <form name="cform" method="post" action="../Dispatcher">
    <input type="hidden" name="pagename" value="systemedit">
	<input type="hidden" name="actionname">
	<input type="hidden" name="app" value="<%=JspHelper.filterNull( app)%>">
    <tr> 
    <td valign="top"> 
      <table width="100%" cellspacing="0" cellpadding="0">
	  <tr> 
          <td colspan="2"><img src="../images/<%= strLanguageCode %>/quote.gif" width="16" height="11"> 
            <%= label.getLabelName("L_MenuInformation") + label.getLabelName("L_Colon") %></td>
        </tr>
      </table>
       <table border="1" cellpadding="2" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" align="center" width="100%">
        <tr> 
          <td width="92" class="need"><%= label.getLabelName("L_AppCode") + label.getLabelName("L_Colon") %></td>
          <td> 
            &nbsp;<custom:write name="appinfo" property="appcode"/>
		  </td>
        </tr>
        <tr> 
          <td class="need" width="92"><%= label.getLabelName("L_AppName") + label.getLabelName("L_Colon") %></td>
          <td> 
            &nbsp;<custom:text name="appinfo" property="applicationname" size="18"/>
          </td>
        </tr>
        <tr> 
          <td class="need" width="92"><%= label.getLabelName("L_FirstCharactors") + label.getLabelName("L_Colon") %></td>
          <td> 
            &nbsp;<custom:text name="appinfo" property="firstcharactors" size="18"/>
          </td>
        </tr>
         <tr>
		    <td class="need" width="92"><%= label.getLabelName("L_Status") + label.getLabelName("L_Colon") %></td>
		    <td>&nbsp;<custom:select name="appinfo" optionsName="allstatus" optionValueKey="value" optionInnerTextKey="valuename" property="status" /></td>
		</tr>

	<table width="100%" cellspacing="0" cellpadding="0">
   <tr>
    <td class="summary_top" ></td>
  </tr>
  <tr>
    <td class="td_center"><a onclick="page_save()"><custom:button type="1" label="L_Save" imgsrc="save.gif" border="0" style="width:60"/></a></td>
  </tr>
  </table>
  </table>
   </td>
   </tr>
</form>
</table>
</body>
</html>


